package yygame.engine.scene
{
	import away3d.containers.Scene3D;
	import away3d.containers.View3D;
	
	import flash.display.Sprite;
	
	public class YYWorld extends Sprite
	{
		public function YYWorld()
		{
			super();
		}
		private var _entitys:Array=[];
		private var _view:View3D;
		private var _scene:Scene3D;
		public function init():void
		{
			_view=new View3D();
			_scene=_view.scene;
			addChild(_view);
		}
		public function addEntity(entity:YYEntity):YYEntity
		{
			return _scene.addChild(entity) as YYEntity;
		}
		public function getEntityById(id:int):YYEntity
		{
			return null;
		}
	}
}